﻿using System;
using RAP.Framework.Libary.DataSource;
using RAP.Framework.Libary.DataSource.Context;
using RAP.Framework.Libary.DataSource.Model;

namespace RAP.Framework.Libary.SqlDataService
{
	/// <summary>
	/// 
	/// </summary>
	public class SqlDataServiceEventArgs : EventArgs
	{
		/// <summary>
		/// 查询参数对象
		/// </summary>
		public IQueryParams Param { get; set; }

		/// <summary>
		/// 数据服务的Id
		/// </summary>
		public string ServiceId { get; set; }

		/// <summary>
		/// 开始执行的时间
		/// </summary>
		public DateTime StartTime { get; set; }

		/// <summary>
		/// 结束执行的时间
		/// </summary>
		public DateTime EndTime { get; set; }

		/// <summary>
		/// 数据查询耗时
		/// </summary>
		public int Duration { get; set; }

		/// <summary>
		/// 查询出错的错误信息对象
		/// </summary>
		public ServiceError Error { get; set; }

		/// <summary>
		/// 查询到的数据量
		/// </summary>
		public int DataCount { get; set; }
	}
}
